﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_SanPhamDoDang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CmdBoGhiSo")]
        private Button _CmdBoGhiSo;
        [AccessedThroughProperty("CmdExit")]
        private Button _CmdExit;
        [AccessedThroughProperty("CmdGhiSo")]
        private Button _CmdGhiSo;
        [AccessedThroughProperty("CmdRefesh")]
        private Button _CmdRefesh;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("TabControl1")]
        private TabControl _TabControl1;
        [AccessedThroughProperty("TabPage1")]
        private TabPage _TabPage1;
        [AccessedThroughProperty("VSDoDang")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSDoDang;
        private string cFrmFormat;
        private string cFrmKhoaChungTuDoDang;
        private string cFrmKhoaChungTuHoanThanh;
        private string cFrmNamThang;
        private string cFrmNgayChungTu;
        private string cFrmSoChungTu;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsSanPhamHoanThanh objHT;
        private clsSanPhamDoDang objSP;
        private clsDMTaiKhoan objTK;
        private string pKhoaTKDoanhThu;
        private string pKhoaTKLoiNhuan;
        private string pSoTKDoanhThu;
        private string pSoTKLoiNuan;

        public Frm_SanPhamDoDang()
        {
            base.Load += new EventHandler(this.Frm_SanPhamDoDang_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmNamThang = "";
            this.cFrmFormat = "";
            this.objTK = new clsDMTaiKhoan();
            this.objSP = new clsSanPhamDoDang();
            this.objHT = new clsSanPhamHoanThanh();
            this.InitializeComponent();
        }

        public bool CheckIvalidDoDang()
        {
            int num2 = this.VSDoDang.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 2]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn t\x00e0i khoản kết chuyển", ""));
                    this.VSDoDang.Select(i, 3);
                    this.VSDoDang.Focus();
                    return false;
                }
            }
            return true;
        }

        private void CmdBoGhiSo_Click(object sender, EventArgs e)
        {
            switch (this.TabControl1.SelectedIndex)
            {
                case 0:
                {
                    this.Cursor = Cursors.WaitCursor;
                    clsSanPhamDoDang objSP = this.objSP;
                    objSP.NamThang = this.cFrmNamThang;
                    objSP.KhoaDonVi = modGeneral.H_CLIENT;
                    objSP.HuyGhiSo(this.cFrmKhoaChungTuDoDang);
                    objSP = null;
                    this.CmdRefesh_Click(this.CmdRefesh, e);
                    this.Cursor = Cursors.Default;
                    break;
                }
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdGhiSo_Click(object sender, EventArgs e)
        {
            if ((this.CheckIvalidDoDang() && this.SaveTmpDoDang()) && this.GhiSoSanPhamDoDang())
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ đ\x00e3 được thực hiện, bạn h\x00e3y kiểm tra lại số liệu.", ""));
            }
        }

        private void CmdRefesh_Click(object sender, EventArgs e)
        {
            this.GetSanPhamDoDang();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_SanPhamDoDang_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                if (LVYModule.ReturnIfNull(this.cFrmNamThang, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.cFrmNamThang = SearchModule.GetNamThang("");
                }
                if (LVYModule.ReturnIfNull(this.cFrmNamThang, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.Dispose();
                }
                else
                {
                    this.cFrmFormat = modGeneral.H_FORMATNUMBER;
                    clsSanPhamDoDang objSP = this.objSP;
                    objSP.NamThang = this.cFrmNamThang;
                    objSP.KhoaDonVi = modGeneral.H_CLIENT;
                    objSP = null;
                    clsSanPhamHoanThanh objHT = this.objHT;
                    objHT.NamThang = this.cFrmNamThang;
                    objHT.KhoaDonVi = modGeneral.H_CLIENT;
                    objHT = null;
                    this.cFrmKhoaChungTuDoDang = modGeneral.H_PREFIX + "DD" + LVYModule.sRight("000000000000000" + this.cFrmNamThang, 11);
                    this.cFrmKhoaChungTuHoanThanh = modGeneral.H_PREFIX + "HT" + LVYModule.sRight("000000000000000" + this.cFrmNamThang, 11);
                    this.cFrmSoChungTu = "HT-" + this.cFrmNamThang;
                    this.cFrmNgayChungTu = Conversions.ToString(DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sLeft(this.cFrmNamThang, 4)), Conversions.ToInteger(LVYModule.sRight(this.cFrmNamThang, 2)))) + "/" + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
                    this.LoadSanPhamDoDang();
                }
            }
        }

        public void GetSanPhamDoDang()
        {
            DataTable table = this.objSP.TinhLaiSanPhamDoDang();
            this.VSDoDang.Rows.Count = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSDoDang = this.VSDoDang;
            int num2 = table.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSDoDang.AddItem("");
                vSDoDang[vSDoDang.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(table.Rows[i]["KhoaTaiKhoanCo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoTaiKhoanCo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(table.Rows[i]["KhoaTaiKhoanNo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoTaiKhoanNo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(table.Rows[i]["KhoaBoPhan"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(table.Rows[i]["BoPhan"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(table.Rows[i]["KhoaSanPham"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SanPham"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(table.Rows[i]["KhoaHopDong"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoHopDong"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoPhatSinh"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(table.Rows[i]["DienGiai"]);
            }
            vSDoDang = null;
        }

        public bool GhiSoSanPhamDoDang()
        {
            bool flag=false;
            this.Cursor = Cursors.WaitCursor;
            clsSanPhamDoDang objSP = this.objSP;
            objSP.NamThang = this.cFrmNamThang;
            objSP.KhoaDonVi = modGeneral.H_CLIENT;
            return objSP.GhiSo(this.cFrmKhoaChungTuDoDang, this.cFrmSoChungTu, LVYModule.Date2Char(this.cFrmNgayChungTu));
            objSP = null;
            this.Cursor = Cursors.Default;
            return flag;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_SanPhamDoDang));
            this.TabControl1 = new TabControl();
            this.TabPage1 = new TabPage();
            this.VSDoDang = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.CmdRefesh = new Button();
            this.CmdExit = new Button();
            this.CmdBoGhiSo = new Button();
            this.CmdGhiSo = new Button();
            this.TabControl1.SuspendLayout();
            this.TabPage1.SuspendLayout();
            this.VSDoDang.BeginInit();
            this.Panel1.SuspendLayout();
            this.SuspendLayout();
            this.TabControl1.Controls.Add(this.TabPage1);
            this.TabControl1.Dock = DockStyle.Fill;
            Point point = new Point(0, 0);
            this.TabControl1.Location = point;
            this.TabControl1.Name = "TabControl1";
            this.TabControl1.SelectedIndex = 0;
            Size size = new Size(0x37e, 0x21d);
            this.TabControl1.Size = size;
            this.TabControl1.TabIndex = 12;
            this.TabPage1.Controls.Add(this.VSDoDang);
            point = new Point(4, 0x16);
            this.TabPage1.Location = point;
            this.TabPage1.Name = "TabPage1";
            Padding padding = new Padding(3);
            this.TabPage1.Padding = padding;
            size = new Size(0x376, 0x203);
            this.TabPage1.Size = size;
            this.TabPage1.TabIndex = 0;
            this.TabPage1.Text = "Sản phẩm dở dang";
            this.TabPage1.UseVisualStyleBackColor = true;
            this.VSDoDang.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSDoDang.ColumnInfo = manager.GetString("VSDoDang.ColumnInfo");
            this.VSDoDang.Cursor = Cursors.Default;
            this.VSDoDang.Dock = DockStyle.Fill;
            this.VSDoDang.ExtendLastCol = true;
            this.VSDoDang.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 3);
            this.VSDoDang.Location = point;
            this.VSDoDang.Name = "VSDoDang";
            this.VSDoDang.Rows.Count = 1;
            this.VSDoDang.Rows.DefaultSize = 0x11;
            size = new Size(880, 0x1fd);
            this.VSDoDang.Size = size;
            this.VSDoDang.StyleInfo = manager.GetString("VSDoDang.StyleInfo");
            this.VSDoDang.TabIndex = 0x5c;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdRefesh);
            this.Panel1.Controls.Add(this.CmdExit);
            this.Panel1.Controls.Add(this.CmdBoGhiSo);
            this.Panel1.Controls.Add(this.CmdGhiSo);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0x21d);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x37e, 0x20);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 13;
            point = new Point(0x1eb, 4);
            this.CmdRefesh.Location = point;
            this.CmdRefesh.Name = "CmdRefesh";
            size = new Size(0x5f, 0x19);
            this.CmdRefesh.Size = size;
            this.CmdRefesh.TabIndex = 0x13;
            this.CmdRefesh.Text = "&Refresh";
            this.CmdRefesh.UseVisualStyleBackColor = true;
            point = new Point(0x31b, 4);
            this.CmdExit.Location = point;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x5f, 0x19);
            this.CmdExit.Size = size;
            this.CmdExit.TabIndex = 0x12;
            this.CmdExit.Text = "&Tho\x00e1t";
            this.CmdExit.UseVisualStyleBackColor = true;
            point = new Point(0x2b5, 4);
            this.CmdBoGhiSo.Location = point;
            this.CmdBoGhiSo.Name = "CmdBoGhiSo";
            size = new Size(0x5f, 0x19);
            this.CmdBoGhiSo.Size = size;
            this.CmdBoGhiSo.TabIndex = 0x11;
            this.CmdBoGhiSo.Text = "&Hủy ghi sổ";
            this.CmdBoGhiSo.UseVisualStyleBackColor = true;
            point = new Point(0x250, 4);
            this.CmdGhiSo.Location = point;
            this.CmdGhiSo.Name = "CmdGhiSo";
            size = new Size(0x5f, 0x19);
            this.CmdGhiSo.Size = size;
            this.CmdGhiSo.TabIndex = 0x10;
            this.CmdGhiSo.Text = "&Ghi sổ";
            this.CmdGhiSo.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x23d);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.TabControl1);
            this.Controls.Add(this.Panel1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_SanPhamDoDang";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "TH-0011";
            this.Text = "SAN PHAM DO DANG";
            this.TabControl1.ResumeLayout(false);
            this.TabPage1.ResumeLayout(false);
            this.VSDoDang.EndInit();
            this.Panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }

        public void LoadSanPhamDoDang()
        {
            DataTable sanPhamDoDang = this.objSP.GetSanPhamDoDang();
            this.VSDoDang.Rows.Count = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSDoDang = this.VSDoDang;
            int num2 = sanPhamDoDang.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSDoDang.AddItem("");
                vSDoDang[vSDoDang.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["KhoaTaiKhoanCo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["SoTaiKhoanCo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["KhoaTaiKhoanNo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["SoTaiKhoanNo"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["KhoaBoPhan"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["BoPhan"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["KhoaSanPham"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["SanPham"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["KhoaHopDong"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["SoHopDong"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["SoPhatSinh"]);
                vSDoDang[vSDoDang.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(sanPhamDoDang.Rows[i]["DienGiai"]);
            }
            vSDoDang = null;
        }

        public bool SaveTmpDoDang()
        {
            clsSanPhamDoDang objSP = this.objSP;
            int num2 = this.VSDoDang.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                objSP.NamThang = this.cFrmNamThang;
                objSP.KhoaDonVi = modGeneral.H_CLIENT;
                objSP.KhoaTaiKhoanCo = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objSP.KhoaTaiKhoanNo = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 2]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objSP.KhoaBoPhan = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 4]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objSP.KhoaSanPham = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 6]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objSP.KhoaHopDong = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 8]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objSP.DienGiai = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 11]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objSP.LoaiTien = modGeneral.H_CURRENCY;
                objSP.TyGia = 1.0;
                objSP.SoPhatSinhNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 10]), 0, modGeneral.TypeOfValue.Nothing));
                objSP.SoPhatSinh = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoDang[i, 10]), 0, modGeneral.TypeOfValue.Nothing));
                if (!objSP.Save())
                {
                    return false;
                }
            }
            objSP = null;
            return true;
        }

        private void VSDoDang_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (e.Col != 3)
            {
                e.Cancel = true;
            }
        }

        private void VSDoDang_CellButtonClick(object sender, RowColEventArgs e)
        {
            if (e.Col == 3)
            {
                string expression = SearchModule.SearchTaiKhoan("154", "", "", "", "");
                if (expression != "")
                {
                    object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSDoDang[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                    this.VSDoDang[e.Row, 3] = NewLateBinding.LateIndexGet(instance, new object[] { 1 }, null).ToString().Trim() + "." + NewLateBinding.LateIndexGet(instance, new object[] { 2 }, null).ToString().Trim();
                }
            }
        }

        internal virtual Button CmdBoGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdBoGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdBoGhiSo_Click);
                if (this._CmdBoGhiSo != null)
                {
                    this._CmdBoGhiSo.Click -= handler;
                }
                this._CmdBoGhiSo = value;
                if (this._CmdBoGhiSo != null)
                {
                    this._CmdBoGhiSo.Click += handler;
                }
            }
        }

        internal virtual Button CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual Button CmdGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdGhiSo_Click);
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click -= handler;
                }
                this._CmdGhiSo = value;
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click += handler;
                }
            }
        }

        internal virtual Button CmdRefesh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRefesh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRefesh_Click);
                if (this._CmdRefesh != null)
                {
                    this._CmdRefesh.Click -= handler;
                }
                this._CmdRefesh = value;
                if (this._CmdRefesh != null)
                {
                    this._CmdRefesh.Click += handler;
                }
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual TabControl TabControl1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabControl1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabControl1 = value;
            }
        }

        internal virtual TabPage TabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabPage1 = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSDoDang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSDoDang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSDoDang_CellButtonClick);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSDoDang_BeforeEdit);
                if (this._VSDoDang != null)
                {
                    this._VSDoDang.CellButtonClick -= handler;
                    this._VSDoDang.BeforeEdit -= handler2;
                }
                this._VSDoDang = value;
                if (this._VSDoDang != null)
                {
                    this._VSDoDang.CellButtonClick += handler;
                    this._VSDoDang.BeforeEdit += handler2;
                }
            }
        }
    }
}

